Fix for 904065: use .php instead of .phtml extension by default
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?php
2 # DO NOT EDIT THIS FILE!
3 # To customize your installation, edit "LocalSettings.php".
4 # Note that since all these string interpolations are expanded
5 # before LocalSettings is included, if you localize something
6 # like $wgScriptPath, you must also localize everything that
7 # depends on it.
8
9 $wgVersion = "1.2.0beta";
10
11 $wgSitename = "MediaWiki"; # Please customize!
12 $wgMetaNamespace = FALSE; # will be same as you set $wgSitename
13
14 $wgServer = "http://" . getenv( "SERVER_NAME" );
15 $wgScriptPath = "/wiki";
16
17 # Change this and the next two to use "phtml" for compatibility with old installations
18 $wgScriptExtension = "php";
19 $wgScript = "{$wgScriptPath}/wiki.{$wgScriptExtension}";
20 $wgRedirectScript = "{$wgScriptPath}/redirect.{$wgScriptExtension}";
21
22 $wgStyleSheetPath = "{$wgScriptPath}/style";
23 $wgStyleSheetDirectory = "{$IP}/style";
24 $wgArticlePath = "{$wgScript}?title=$1";
25 $wgUploadPath = "{$wgScriptPath}/upload";
26 $wgUploadDirectory = "{$IP}/upload";
27 $wgLogo = "{$wgUploadPath}/wiki.png";
28 $wgMathPath = "{$wgUploadPath}/math";
29 $wgMathDirectory = "{$wgUploadDirectory}/math";
30 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
31 $wgEmergencyContact = "wikiadmin@" . getenv( "SERVER_NAME" );
32 $wgPasswordSender = "Wikipedia Mail <apache@" . getenv( "SERVER_NAME" ) . ">";
33
34 # MySQL settings
35 #
36 $wgDBserver = "localhost";
37 $wgDBname = "wikidb";
38 $wgDBconnection = "";
39 $wgDBuser = "wikiuser";
40 $wgDBpassword = "userpass";
41 $wgDBsqluser = "sqluser";
42 $wgDBsqlpassword = "sqlpass";
43 $wgDBminWordLen = 4;
44 $wgDBtransactions = false; # Set to true if using InnoDB tables
45 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
46 $wgSqlTimeout = 30;
47
48 # Database load balancer
49 $wgDBservers = false; # e.g. array("larousse", "pliny")
50 $wgDBloads = false; # e.g. array(0.6, 0.4);
51
52
53 # memcached settings
54 # See docs/memcached.doc
55 #
56 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
57 $wgUseMemCached = false;
58 $wgMemCachedServers = array( "127.0.0.1:11000" );
59 $wgMemCachedDebug = false;
60 $wgSessionsInMemcached = false;
61 $wgLinkCacheMemcached = false; # Not fully tested
62
63 # Language settings
64 #
65 $wgLanguageCode = "en";
66 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
67 $wgInputEncoding = "ISO-8859-1";
68 $wgOutputEncoding = "ISO-8859-1";
69 $wgEditEncoding = "";
70 $wgDocType = "-//W3C//DTD HTML 4.01 Transitional//EN";
71 $wgDTD = "http://www.w3.org/TR/html4/loose.dtd";
72 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
73 # DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES
74 $wgAmericanDates = false; # Enable for English module to print dates
75 # as eg 'May 12' instead of '12 May'
76 $wgLocalInterwiki = "w";
77 $wgShowIPinHeader = true; # For non-logged in users
78 $wgMaxNameChars = 32; # Maximum number of bytes in username
79
80 # Translation using MediaWiki: namespace
81 # Not recommended unless memcached is installed
82 $wgUseDatabaseMessages = false;
83 $wgMsgCacheExpiry = 86400;
84
85 $wgExtraSubtitle = "";
86 $wgSiteSupportPage = "";
87
88 # Miscellaneous configuration settings
89 #
90 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
91
92 # The debug log file should be not be publically accessible if it is
93 # used, as it may contain private data.
94 $wgDebugLogFile = "";
95
96 $wgDebugComments = false;
97 $wgReadOnly = false;
98 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
99 $wgLogQueries = false;
100 $wgUseCategoryMagic = false;
101 $wgEnablePersistentLC = false; # Persistent link cache in linkscc table; FAILS on MySQL 3.x
102 $wgCompressedPersistentLC = true; # use gzcompressed blobs
103
104 $wgEnableParserCache = false; # requires that php was compiled --with-zlib
105
106 # wgHitcounterUpdateFreq sets how often page counters should be
107 # updated, higher values are easier on the database. A value of 1
108 # causes the counters to be updated on every hit, any higher value n
109 # cause them to update *on average* every n hits. Should be set to
110 # either 1 or something largish, eg 1000, for maximum efficiency.
111
112 $wgHitcounterUpdateFreq = 1;
113
114 # User rights
115 $wgWhitelistEdit = false;
116 $wgWhitelistRead = false;
117 $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
118 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
119 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
120 $wgDefaultBlockExpiry = "24 hours"; # default expiry time
121 # strtotime format, or "infinite" for an infinite block
122 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
123
124 # Client-side caching:
125 $wgCachePages = true; # Allow client-side caching of pages
126
127 # Set this to current time to invalidate all prior cached pages.
128 # Affects both client- and server-side caching.
129 $wgCacheEpoch = "20030516000000";
130
131 # Server-side caching:
132 # This will cache static pages for non-logged-in users
133 # to reduce database traffic on public sites.
134 # Must set $wgShowIPinHeader = false
135 $wgUseFileCache = false;
136 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
137
138 $wgCookieExpiration = 2592000;
139
140 # Squid-related settings
141 #
142 # Enable/disable Squid
143 $wgUseSquid = false;
144 # If you run Squid3 with ESI support, enable this (default:false):
145 $wgUseESI = false;
146 # Internal server name as known to Squid, if different
147 # $wgInternalServer = 'http://yourinternal.tld:8000';
148 $wgInternalServer = $wgServer;
149 # Cache timeout for the squid, will be sent as s-maxage (without ESI) or
150 # Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
151 # 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
152 $wgSquidMaxage = 18000;
153 # A list of proxy servers (ips if possible) to purge on changes
154 # don't specify ports here (80 is default)
155 # $wgSquidServers = array('127.0.0.1');
156
157 # Set to set an explicit domain on the login cookies
158 # eg, "justthis.domain.org" or ".any.subdomain.net"
159 $wgCookieDomain = "";
160 $wgCookiePath = "/";
161 $wgDisableCookieCheck = false;
162
163 $wgAllowExternalImages = true;
164 $wgMiserMode = false; # Disable database-intensive features
165 $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some
166 $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so
167 $wgWLCacheTimeout = 3600; # The hour or so mentioned above
168
169 # To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
170 # of the MediaWiki package and have latex, dvips, gs (ghostscript), and
171 # convert (ImageMagick) installed and available in the PATH.
172 # Please see math/README for more information.
173 $wgUseTeX = false;
174 $wgTexvc = "./math/texvc"; # Location of the texvc binary
175
176 # Profiling / debugging
177 $wgProfiling = false; # Enable for more detailed by-function times in debug log
178 $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this
179 $wgProfileOnly = false; # Don't put non-profiling info into log file
180 $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db.
181 $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on
182 $wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls
183 $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut
184
185 $wgDisableCounters = false;
186 $wgDisableTextSearch = false;
187 $wgDisableFuzzySearch = false;
188 $wgDisableSearchUpdate = false; # If you've disabled search semi-permanently, this also disables updates to the table. If you ever re-enable, be sure to rebuild the search table.
189 $wgDisableUploads = true; # Uploads have to be specially set up to be secure
190 $wgRemoteUploads = false; # Set to true to enable the upload _link_ while local uploads are disabled. Assumes that the special page link will be bounced to another server where uploads do work.
191 $wgDisableAnonTalk = false;
192
193 # We can serve pages compressed in order to save bandwidth,
194 # but this will increase CPU usage.
195 # Requires zlib support enabled in PHP.
196 $wgUseGzip = function_exists( "gzencode" );
197
198 # We can also compress text in the old revisions table. If this is set on,
199 # old revisions will be compressed on page save if zlib support is available.
200 # Any compressed revisions will be decompressed on load regardless of this
201 # setting *but will not be readable at all* if zlib support is not available.
202 $wgCompressRevisions = false;
203
204 # This is the list of preferred extensions for uploading files. Uploading
205 # files with extensions not in this list will trigger a warning.
206
207 $wgFileExtensions = array( "png", "jpg", "jpeg", "ogg" );
208
209 # Files with these extensions will never be allowed as uploads.
210 $wgFileBlacklist = array(
211 # HTML may contain cookie-stealing JavaScript and web bugs
212 "html", "htm",
213 # PHP scripts may execute arbitrary code on the server
214 "php", "phtml", "php3", "php4", "phps",
215 # Other types that may be interpreted by some servers
216 "shtml", "jhtml", "pl", "py",
217 # May contain harmful executables for Windows victims
218 "exe", "scr", "dll", "msi", "vbs", "bat", "com", "pif", "cmd", "vxd", "cpl" );
219
220 # This is a flag to determine whether or not to check file extensions on
221 # upload.
222 $wgCheckFileExtensions = true;
223
224 # If this is turned off, users may override the warning for files not
225 # covered by $wgFileExtensions.
226 $wgStrictFileExtensions = true;
227
228 $wgPasswordSalt = true; # For compatibility with old installations set to false
229
230 # Which namespaces should support subpages?
231 # See Language.php for a list of namespaces.
232 #
233 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
234 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1 );
235
236 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
237 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0 );
238
239 # If set, a bold ugly notice will show up at the top of every page.
240 $wgSiteNotice = "";
241
242 # Whether to allow anonymous users to set changes to 'minor'
243
244 $wgAllowAnonymousMinor = false;
245 ?>